/*19 begin
 * #include <iostream>
using namespace std;
int main(int argc, char **argv[])
{
  double x1, y1, x2, y2, a, b;
  cout << "x1, y1 = ";
  cin >> x1 >> y1;
  cout << "x2, y2 = ";
  cin >> x2 >> y2;
  cout << "P = " << 2 * (y2 - y1 + x2 - x1) << "\n S = " << (y2 - y1) * (x2 - x1);
  return 0;
}

20 begin

#include <iostream>
#include <cmath>
using namespace std;
int main(int argc, char **argv[])
{
  double x1, y1, x2, y2;
  cout << "vvedite koordinati pervoy tochki x1 i y1: ";
  cin >> x1 >> y1;
  cout << "vvedite koordinati vtoroy tochki x2 i y2: ";
  cin >> x2 >> y2;
  cout << "rasstoyanie megdu tochkami:" << sqrt(pow((x2 - x1), 2.0) + pow((y2 - y1), 2.0)) << endl;
  return 0;
}*/

/*
19 integer
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
    int t;
    cout<<"vvedite kol-vo sekund: ";
    cin>>t;
    t = t / 60;
    cout<<"min: "<<t;
    return 0;
}

20 integer
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
    int t;
    cout<<"vvedite kol-vo sekund: ";
    cin>>t;
    t = t / 3600;
    cout<<"Chas: "<<t;
    return 0;
}

19 boolean
#include <iostream>
using namespace std;
int main(int argc, char * argv[])
{
  int A, B, C;
  cin >> A >> B >> C;
  cout << ((A == -(B)) || (B == -(C)) || (A == -(C)));
  return 0;
}

20 boolean
#include <iostream>
using namespace std;
int main(int argc, char * argv[])
{
  int A;
  std::cin >> A;
  std::cout << (((A % 10) != ((A / 10) % 10)) && ((A % 10) != ((A / 100) % 10)) && (((A / 10) % 10) != ((A / 100) % 10)));
  return 0;
}*/
